import request from '@/utils/request'

export function getCrontabList(data) {
  return request({
    url: '/admin/system/crontab/list',
    method: 'get',
    params: data
  })
}

export function createCrontab(data) {
  return request({
    url: '/admin/system/crontab/create',
    method: 'post',
    data: data
  })
}

export function updateCrontab(data) {
  return request({
    url: '/admin/system/crontab/update',
    method: 'post',
    data: data
  })
}

export function deleteCrontab(data) {
  return request({
    url: '/admin/system/crontab/delete',
    method: 'post',
    data: data
  })
}
